export const isLogin = () => !!localStorage.getItem('token')
export const getToken = () => localStorage.getItem('token')
export const getRole = () => localStorage.getItem('role')
// 清楚用户个人信息
export const removeUserInfo = () => {
  localStorage.removeItem('token')
  localStorage.removeItem('role')
  localStorage.removeItem('userInfo')
}
